package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 语句规则表 实体类
 * 表名：ra_statement_rule
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_statement_rule")
public class RaStatementRule implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 节点主键
     */
    @Column(name = "field", length = 64)
    private String field;
    
    /**
     * 语句JSON数组
     */
    @Column(name = "statement_json", length = 65535)
    private String statementJson;
    
    /**
     * 租户主键ID
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "RaStatementRule{" +
            "id=" + id +
            ", field=" + field +
            ", statementJson=" + statementJson +
            ", tenantId=" + tenantId +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        '}';
    }
} 